package myschool.array.student;

import java.util.Scanner;

public class NumberGame {
    /**
     * 求数组和
     * 猜数游戏：从键盘中任意输入一个数据判断数列中是否包含
     */
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int[] number = {8,4,2,1,23,344,12};
        int sum = 0;
        for (int i = 0; i < number.length; i++) {
            sum = sum+number[i];
        }
        System.out.println("数组和"+sum);
        //求和

        System.out.println("猜数游戏，请输入任意数字：");
        int numberOne;
        numberOne = input.nextInt();

    }
}
